<%@ page import="edu.auctionmart.Bid" %>



<div class="fieldcontain ${hasErrors(bean: bidInstance, field: 'auction', 'error')} required">
	<label for="auction">
		<g:message code="bid.auction.label" default="Auction" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="auction" name="auction.id" from="${edu.auctionmart.Auction.list()}" optionKey="id" required="" value="${bidInstance?.auction?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bidInstance, field: 'userAccount', 'error')} required">
	<label for="userAccount">
		<g:message code="bid.userAccount.label" default="User Account" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="userAccount" name="userAccount.id" from="${edu.auctionmart.User.list()}" optionKey="id" required="" value="${bidInstance?.userAccount?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bidInstance, field: 'amount', 'error')} required">
	<label for="amount">
		<g:message code="bid.amount.label" default="Amount" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="amount" required="" value="${fieldValue(bean: bidInstance, field: 'amount')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bidInstance, field: 'time', 'error')} required">
	<label for="time">
		<g:message code="bid.time.label" default="Time" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="time" value="${bidInstance.time}"/>	
</div>

